<?php echo $this->render('head.phtml');?>
<div class='container_24 div_content ui-corner-all'>
  <div class='grid_23 bread_crumbs'>
    <div class='left'>
      <!-- crumbs -->
      <a class='crumb ' href="/category/all">所有分类</a>
      <?php foreach ($this->crumbs as $crumb){ //print_r($crumb->getOptions());?>
      &nbsp;>>&nbsp;
      <a class='crumb ' href="/category/select?cat_id=<?php echo $crumb->get('id');?>">
	<?php echo $crumb->get("name");?>
      </a>
      <?php } ?>
      <br/><br/>
      <!-- sub categories -->
      <div class="margin-left-40px">
	<?php foreach ($this->cats as $id=>$name){ ?>
	<a class='crumb ' href="/category/select?cat_id=<?php echo $id;?>"><?php echo $name;?></a>
	<?php } ?>	

      </div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="clear"></div>

  <div class='margin-top-20px '></div>
  <?php
  foreach($this->paginator as $course)
  {
  ?>

  <div class='grid_23 search_item ' >
    <div class=' grid_3'>
      <a href="/video/play?cont_id=<?php echo $course['id'];?>">
	<img class='search_item_img' src="<?php echo THUMBNAILS_PREFIX.$course['thumb'];?>"/>
      </a>
    </div>
    <div class=' grid_4 title'><a class='a_course_title' href="/video/play?cont_id=<?php echo $course['id'];?>"><?php echo $course['title'];?></a></div>
    <div class=' grid_10 desc'><?php echo $course['descript'];?></div>
    <div class=' grid_2 view'><?php echo $course['times'];?></div>
    <!-- <img src='/img/money.png'/> -->
    <div class='grid_2 big-text price ui-corner-all'><?php printf('￥%.2f', $course['promotion'] ? $course['dis_price'] : $course['ori_price']);?></div>
  </div>
  <div class='clear'></div>  
  <hr class='margin-top-10px' />
  <?php }?>
  <div class='clear'></div>
  <?php echo $this->paginationControl($this->paginator, 'Sliding', 'courses/pagelist.phtml');?>
</div>
<?php echo $this->render('foot.phtml');?>

